<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateResumeAdditionTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('resume_additions', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('resume_id')->index();

            $table->json('employment_history');
            $table->json('educational_history');

            $table->text('additional_info');
            $table->text('project_history');
            $table->text('training_history');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('resume_additions');
    }
}
